Expand description

The crate fuel-core-storage contains storage types, primitives, tables used by fuel-core. This crate doesn’t contain the actual implementation of the storage. It works around the Database and is used by services to provide a default implementation. Primitives defined here are used by services but are flexible enough to customize the logic when the Database is known.

Modules

  • Iterators returned by the storage.
  • The module contains definition of storage tables used by default implementation of fuel services.
  • The primitives to work with storage in transactional mode.

Macros

  • Creates StorageError::NotFound error with file and line information inside.

Structs

  • The FuelVM storage double key.
  • The FuelVM storage double key.
  • The wrapper around the storage that supports methods from StorageInspect and StorageMutate.
  • The wrapper around the storage that supports only methods from StorageInspect.

Enums

  • Error occurring during interaction with storage

Traits

  • When this trait is implemented, the underlying interpreter is guaranteed to have full functionality
  • The helper trait to work with storage errors.
  • Mappable type with Key and Value.
  • Returns the merkle root for the StorageType per merkle Key. The type should implement the StorageMutate for the StorageType. Per one storage, it is possible to have several merkle trees under different Key.
  • Helper trait for StorageMutate to provide user-friendly API to retrieve storage as mutable reference.
  • Helper trait for StorageInspect to provide user-friendly API to retrieve storage as reference.
  • Base read storage trait for Fuel infrastructure.
  • Base storage trait for Fuel infrastructure.

Type Definitions